import java.util.Scanner;

public class containsMain{
	public static void main(String args[]){
			Cubie topLeft = new Cubie(0.2, 0.25);
			Cubie topMid = new Cubie(0.5, 0.25);
			Cubie topRight = new Cubie(0.65, 0.25);
			Cubie midLeft = new Cubie(0.3, 0.6);
			Cubie midMid = new Cubie(0.5, 0.6);
			Cubie midRight = new Cubie(0.65, 0.6);
			Cubie botLeft = new Cubie(0.3, 0.75);
			Cubie botMid = new Cubie(0.5, 0.75);
			Cubie botRight = new Cubie(0.65, 0.75);
			String selection = "";
			Scanner keyboard = new Scanner(System.in);
			
			System.out.println("What cubie would you like: ");
			selection = keyboard.nextLine();
			selection = selection.toUpperCase();
			
			switch(selection){
			case "TOPLEFT":
				printValues(topLeft, true);
				break;
			case "TOPMID":
				printValues(topMid, true);
				break;
			case "TOPRIGHT":
				printValues(topRight, true);
				break;
			case "MIDLEFT":
				printValues(midLeft, true);
				break;
			case "MIDMID":
				printValues(midMid, true);
				break;
			case "MIDRIGHT":
				printValues(midRight, true);
				break;
			case "BOTLEFT":
				printValues(botLeft, true);
				break;
			case "BOTMID":
				printValues(botMid, true);
				break;
			case "BOTRIGHT":
				printValues(botRight, true);
				break;
			case "ALL":
				printValues(topLeft, false);
				printValues(topMid, false);
				printValues(topRight, false);
				printValues(midLeft, false);
				printValues(midMid, false);
				printValues(midRight, false);
				printValues(botLeft, false);
				printValues(botMid, false);
				printValues(botRight, false);
				break;
			default:
				System.out.println("Not acceptable");	
			}
	}
	
	public static void printValues(Cubie cube, boolean printExtra){
		if(printExtra){
			System.out.println("Height: " + cube.returnHeight());
			System.out.println("Width: " + cube.returnWidth());
			System.out.println("Red: " + cube.returnRed());
			System.out.println("Green: " + cube.returnGreen());
			System.out.println("Blue: " + cube.returnBlue());
			System.out.println("X Coordinate: " + cube.xCoordinate);
			System.out.println("Y Coordinate: " + cube.yCoordinate);
		}
		System.out.println("Color: " + cube.returnColor());
	}
}